home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_spawn_reinforcements.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  3.1 KB  |  152 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_start_reinforcements", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.      Condition("VarConstInteger", "@jda.shuttledestroyed", "==", 1);
  14.     Action()
  15.     {
  16.       NewObjective("objective_spawn_reinforcements1");
  17.       NewObjective("objective_random_attacks");
  18.     }
  19.   }
  20. }
  21.  
  22. CreateObjectType("objective_double_reinforcements", "Objective")
  23. {
  24.   GameObj();
  25.   ObjectiveObj()
  26.   {
  27.      Condition("VarConstInteger", "@JDA.basegone", "==", 1);
  28.     Action()
  29.     {
  30.       NewObjective("objective_spawn_reinforcements4");
  31.     }
  32.   }
  33. }
  34.  
  35.  
  36.  
  37. CreateObjectType("objective_spawn_reinforcements1", "Objective")
  38. {
  39.   GameObj();
  40.   ObjectiveObj()
  41.   {
  42.      Condition("Timer")
  43.       {
  44.         Time(210);
  45.       }
  46.  
  47.     Action()
  48.     {
  49.       ExecuteScript("spawn1*", "squad.move.spawntotrail")
  50.       {
  51.         Op("%.types", "=", "reinforcements1");
  52.         Op("%.region", "=", "CaravanSpawn");
  53.         Op("%.trail", "=", "Reinforcement1");
  54.       }
  55.       NewObjective("objective_spawn_reinforcements2");
  56.     }
  57.   }
  58. }
  59.  
  60. CreateObjectType("objective_spawn_reinforcements2", "Objective")
  61. {
  62.   GameObj();
  63.   ObjectiveObj()
  64.   {
  65.     Condition("Timer")
  66.      {
  67.        Time(240);
  68.      }
  69.  
  70.     Action()
  71.     {
  72.       ExecuteScript("spawn2*", "squad.move.spawntotrail")
  73.       {
  74.         Op("%.types", "=", "reinforcements2");
  75.         Op("%.region", "=", "CaravanSpawn");
  76.         Op("%.trail", "=", "Reinforcement2");
  77.       }
  78.       NewObjective("objective_spawn_reinforcements3");
  79.     }
  80.   }
  81. }
  82.  
  83. CreateObjectType("objective_spawn_reinforcements3", "Objective")
  84. {
  85.   GameObj();
  86.   ObjectiveObj()
  87.   {
  88.     Condition("Timer")
  89.      {
  90.        Time(180);
  91.      }
  92.  
  93.     Action()
  94.     {
  95.       ExecuteScript("spawn3*", "squad.move.spawntotrail")
  96.       {
  97.         Op("%.types", "=", "reinforcements3");
  98.         Op("%.region", "=", "CaravanSpawn");
  99.         Op("%.trail", "=", "Reinforcement3");
  100.       }
  101.       NewObjective("objective_spawn_reinforcements1");
  102.     }
  103.   }
  104. }
  105.  
  106. CreateObjectType("objective_spawn_reinforcements4", "Objective")
  107. {
  108.   GameObj();
  109.   ObjectiveObj()
  110.   {
  111.     Condition("Timer")
  112.      {
  113.        Time(150);
  114.      }
  115.  
  116.     Action()
  117.     {
  118.       ExecuteScript("spawn4*", "squad.move.spawntotrail")
  119.       {
  120.         Op("%.types", "=", "reinforcements4");
  121.         Op("%.region", "=", "CaravanSpawn");
  122.         Op("%.trail", "=", "Reinforcement1");
  123.       }
  124.       NewObjective("objective_spawn_reinforcements5");
  125.     }
  126.   }
  127. }
  128.  
  129. CreateObjectType("objective_spawn_reinforcements5", "Objective")
  130. {
  131.   GameObj();
  132.   ObjectiveObj()
  133.   {
  134.     Condition("Timer")
  135.      {
  136.        Time(210);
  137.      }
  138.  
  139.     Action()
  140.     {
  141.       ExecuteScript("spawn5*", "squad.move.spawntotrail")
  142.       {
  143.         Op("%.types", "=", "reinforcements2");
  144.         Op("%.region", "=", "CaravanSpawn");
  145.         Op("%.trail", "=", "Reinforcement2");
  146.       }
  147.       NewObjective("objective_spawn_reinforcements4");
  148.     }
  149.   }
  150. }
  151.  
  152.